Implementing an Efficient Geometry Dispatcher in OpenTissue
نویسنده
چکیده
In programming we some times need to choose between several implementations of the same functionality based on the run-time types of several arguments. This is called Dynamic Multiple Dispatch. One example of Dynamic Multiple Dispatch is the geometry dispatcher in OpenTissue, which takes a pair of geometry objects and selects a collision-detection function based on the objects type. Unfortunately C++ does not support Dynamic Multiple Dispatch natively, and the previous implementation of the geometry dispatcher used static type enumeration, a static function lookup table and conversion through void pointers. In this project I have explored two methods for approximating dynamic multiple dispatch in C++ and I have compared their flexibility, limits and performance. Finally I have implemented the best suitable method in OpenTissue and compared it against the previous implementation. ∗e-mail: [email protected]
منابع مشابه
Distance Mesh
In this work, a code contribution to the OpenTissue library is presented. OpenTissue is an open-source low level API for use in middleware physics and surgical simulation. This report describes both the algorithm and implementation details towards OpenTissue, where the primary focus is on library development. A simple demonstration program has been devised, to suggest that the implementation wo...
متن کاملApplication of the Extreme Learning Machine for Modeling the Bead Geometry in Gas Metal Arc Welding Process
Rapid prototyping (RP) methods are used for production easily and quickly of a scale model of a physical part or assembly. Gas metal arc welding (GMAW) is a widespread process used for rapid prototyping of metallic parts. In this process, in order to obtain a desired welding geometry, it is very important to predict the weld bead geometry based on the input process parameters, which are voltage...
متن کاملA mesh generation procedure to simulate bimaterials
It is difficult to develop an algorithm which is able to generate the appropriate mesh around the interfaces in bimaterials. In this study, a corresponding algorithm is proposed for this class of unified structures made from different materials with arbitrary shapes. The non-uniform mesh is generated adaptively based on advancing front technique available in Abaqus software. Implementing severa...
متن کاملAn Efficient Load Balancing Strategy for Scalable WAP Gateways
In this paper, we propose a load balancing strategy that has the following features: (1) estimating the potential load of real gateways with low computation and no communication overhead, (2) asynchronous alarm sent when the utilization of a real gateway exceeds a critical threshold, and (3) WAP-awareness. We also propose a scalable WAP gateway (SWG) that consists of a WAP dispatcher and a clus...
متن کاملExplaining the Role of Geometry and Imagination in Creation of Unique Architectures
A In this article the role of geometry and its interaction with imagination in creating the unique architectural will be explained. From long time ago philosophers and prominents have referred to important role that imagination and geometry have in the creation of universe. All over the universe, the emergence of geometry at beginning of creation is undeniable. Geometry with its manifestation a...
متن کامل